//不是纯函数（影响力外界的变量-副作用；给了相同输入，没有返回相同输出）
let payload=0
const addOne =(Number)=>{
    payload++
    return Number+payload
}
console.log(addOne(1))//2
console.log(addOne(1))//3
console.log(addOne(1))//4
//纯函数
const addOne1 =(numder)=>{
    return numder +1
}

console.log(addOne(1))//2
console.log(addOne(1))//2
console.log(addOne(1))//2

const [a,fn] = [12,function(){}]
console.log('数组结构',a,fn)